package cn.wolfcode.education.service.impl;

import cn.wolfcode.education.domain.Work;
import cn.wolfcode.education.mapper.WorkMapper;
import cn.wolfcode.education.service.IWorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IWorkServiceImpl implements IWorkService {

    @Autowired
    private WorkMapper workMapper;
    @Override
    public List SelectAll() {
        return workMapper.selectAll();
    }

    @Override
    public void insert(Work newEven) {
        Work work = new Work();
        workMapper.insert(newEven);
    }
}
